//
//  PhysicSystem.h
//  TestCocosWithBox2
//
//  Created by Nguyen Tan Loc on 8/14/13.
//  Copyright (c) 2013 Nguyen Tan Loc. All rights reserved.
//

#import "MyContactListener.h"
#import "GLES-Render.h"
#import "Box2D.h"

#define PTM_RATIO 32

class PhysicSystem
{
public:
    b2World *mWorld;
    MyContactListener *mContactListener;
    GLESDebugDraw *mDebugDraw;
    
    static PhysicSystem* getInstance();
    
    void update(ccTime dt);
    void drawDebug();
    void destroyAllBody();
    void dealloc();
    
private:
    PhysicSystem();
    static PhysicSystem *mInstance;
};
